package at.fhj.ase.business;

import java.io.FileNotFoundException;
import java.io.IOException;

import javax.xml.stream.XMLStreamException;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class TestAttackDetector {
	AttackDetector detector;

	@Before
	public void setup() throws FileNotFoundException, XMLStreamException, IOException{
		FilterParser parser = new FilterParser();
		this.detector = new AttackDetector(parser.extractFilters(parser.createFilterFileParser()));

	}

	@After

	@Test	
	public void testCheckLoglineForAttacks() throws IOException {
		detector.readAccessLogFile("resources/accesslog.txt");
	}


}	

